//
//  Global.h
//  StockWin
//
//  Created by showshaw on 15/5/28.
//  Copyright (c) 2015年 ZhongQian. All rights reserved.
//

#ifndef StockWin_Global_h
#define StockWin_Global_h


#import "Utils.h"
#import "CacheTool.h"
#import "XXNetRequest.h"


//Third Party
#import "MBProgressHUD+XX.h"
#import "Masonry.h"
#import "UIImageView+WebCache.h"
#import "MJRefresh.h"
#import "MJExtension.h"

typedef NS_ENUM(NSInteger,NetRequestStatus)
{
    NetRequestStatusSuccess = 0,  //成功
    NetRequestStatusFailure = 1, //失败
    NetRequestStatusUnknown = 2 //
};

#pragma mark - Const
static NSString * const kUserFunctionCategoryChange = @"kUserFunctionCategoryChange";


//Simple Common Block
typedef void (^CommonBlock)();
typedef void (^CommonBlockWithPara)(id obj);

//Rgb Color
#define RGBColor(r,g,b,a) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:a]
//系统版本
#define SystemVersion [UIDevice currentDevice].systemVersion.floatValue
//视图颜色宏定义
#define Screen_W_  [UIScreen mainScreen].bounds.size.width
#define Screen_H_  [UIScreen mainScreen].bounds.size.height

#define RGBNormalColor [UIColor colorWithRed:102/255.0 green:102/255.0 blue:102/255.0 alpha:1.0]
#define RGBGreenColor  [UIColor colorWithRed:0/255.0 green:150/255.0 blue:0/255.0 alpha:1.0]
#define RGBRedColor    [UIColor redColor]
#define RGBWhiteColor    [UIColor whiteColor]

//手机号码正则
#define mobileRegex @"^(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$"
//昵称正则(无标点,无空格)
#define nickRegex @"[a-zA-z0-9\u4E00-\u9FA5]*"

#endif
